// The code needed to initialize the box.. really simple in our case :)
_fill_ammobox = {
	private ["_box","_title","_val"];
	_box = _this select 0;
	if (!isnil "_box") then {
		if (typename _box == typename objNull) then {
			if (!isnull _box) then {
				_val = _box getVariable "tonic_vas_ammo_box_initialized";
				if (isnil "_val") then {
					_title = "<t color='#ff1111'>" + localize "STR_ACTION_VAS" + "</t>";
					_val = _box addAction[_title, "tmf\support\modules\tonic_vas\open.sqf",_this,100,true, false,"","alive _target"];
					clearItemCargoGlobal _box;
					clearWeaponCargoGlobal _box;
					clearMagazineCargoGlobal _box;
					_box setVariable ["tonic_vas_ammo_box_initialized",_val];
				};
			};
		};
	};
	// We return an array with true to indicate we did something. the ExecHandler expects an array of results.
	[true]
};

["FILL_AMMOBOX",_fill_ammobox] call tyr_fnc_addhandler;